﻿namespace LinkedTU.Models
{
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using LinkedTU.Common.Interfaces;

    public class UserSkill : BaseDbEntity
    {
        private ICollection<Endorsement> endorsements;

        public UserSkill()
        {
            endorsements = new HashSet<Endorsement>();
        }

        [Key]
        public int UserSkillId { get; set; }

        public virtual Skill Skill { get; set; }

        public int Order { get; set; }

        public virtual ProfileInfo User { get; set; }

        public virtual ICollection<Endorsement> Endorsments { get; set; }
    }
}
